#include "utils.h"
#include <ctime>

std::string get_current_time()
{
    time_t now = time(nullptr);
    char buf[16];
    strftime(buf, sizeof(buf), "[%H:%M:%S]", localtime(&now));
    return std::string(buf);
}

std::string color_wrap(const std::string& msg, const std::string& color_code)
{
    return color_code + msg + Color::RESET;
}

